package wall;

import pointAndLine.Line;
import returnTypes.Status;

public class Wall {
	
	private Line baseLine = null;
	private int height;
	private int thickness;
	private String material;
	private String name;
	private Status state; 
	private static int wallID = 1;
	/**
	 * @param baseLine the baseLine to set
	 */
	public Wall(Line baseLine)
	{
		this.baseLine=baseLine;
		wallID++;
	}
	public Wall() {	}
	public void setBaseLine(Line baseLine) {
		this.baseLine = baseLine;
	}
	/**
	 * @return the baseLine
	 */
	public Line getBaseLine() {
		return baseLine;
	}
	/**
	 * @param hight the hight to set
	 */
	public void setHeight(int height) {
		this.height = height;
	}
	/**
	 * @return the hight
	 */
	public int geteHight() {
		return height;
	}
	/**
	 * @param thickness the thickness to set
	 */
	public void setThickness(int thickness) {
		this.thickness = thickness;
	}
	/**
	 * @return the thickness
	 */
	public int getThickness() {
		return thickness;
	}
	/**
	 * @param material the material to set
	 */
	public void setMaterial(String material) {
		this.material = material;
	}
	/**
	 * @return the material
	 */
	public String getMaterial() {
		return material;
	}
	
	public boolean equals(Wall wall)
	{
		if(this.baseLine.equals(wall.baseLine)) return true;
		return false;
	}
	public String toString(){
		return "Wall: " + baseLine.toString() ;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setState(Status state) {
		this.state = state;
	}
	public Status getState() {
		return state;
	}
	
}
